package io.bdmc.modules.bss.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.bdmc.common.utils.MyPage;
import io.bdmc.modules.bss.entity.FibreView;
import io.bdmc.modules.bss.mapper.FibreViewMapper;
import io.bdmc.modules.bss.service.IDeviceFibreMatchService;
import io.bdmc.modules.bss.service.IFibreViewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 路由 服务实现类
 * </p>
 *
 * @author 黄露
 * @since 2021-05-21
 */
@Service
public class FibreViewServiceImpl extends ServiceImpl<FibreViewMapper, FibreView> implements IFibreViewService {
    @Autowired
    FibreViewMapper _FibreViewMapper;

    @Autowired
    IDeviceFibreMatchService matchService;

    @Override
    public MyPage<FibreView> mySelectPage(MyPage<FibreView> myPage) {
        return _FibreViewMapper.mySelectPage(myPage);
    }


    @Override
    public Boolean deleteRoute(FibreView route) {

        return removeById(route.getViewId());
    }
}
